package csel.model;

import junit.framework.Assert;
import junit.framework.TestCase;

import org.junit.Test; 


public class OccupationTester extends TestCase
{
	Entity e;

	public static void main(String args[]) 
	{ 
		junit.textui.TestRunner.run(MapTester.class); 
	}
	@Test
	public void testSmasher()
	{
		Model m = new Model();
		GameFactory.newGame(new Smasher(), "Bryan", m);
		e = m.getPlayerEntity();
		Assert.assertEquals(15,e.getAgility());
		Assert.assertEquals(25, e.getStrength());
		Assert.assertEquals(15, e.getIntellect());
		Assert.assertEquals(25, e.getHardiness());
	}
	@Test
	public void testSneaker()
	{
		Model m = new Model();
		GameFactory.newGame(new Sneak(), "Bryan", m);
		e = m.getPlayerEntity();
		Assert.assertEquals(25,e.getAgility());
		Assert.assertEquals(15, e.getStrength());
		Assert.assertEquals(20, e.getIntellect());
		Assert.assertEquals(15, e.getHardiness());
	}
	@Test
	public void testSummoner()
	{
		Model m = new Model();
		GameFactory.newGame(new Summoner(), "Bryan", m);
		e = m.getPlayerEntity();
		Assert.assertEquals(20,e.getAgility());
		Assert.assertEquals(15, e.getStrength());
		Assert.assertEquals(25, e.getIntellect());
		Assert.assertEquals(15, e.getHardiness());
	}
}